public class test {
    public static void test1(Animals animals){
        animals.eat();
    }
    public static void test2(IFlying iFlying){
        iFlying.fly();
    }
    public static void test3(IRunning iRunning){
        iRunning.run();
    }
    public static void test4(ISwimming iSwimming){
        iSwimming.swim();
    }
    public static void main(String[] args) {
        bird bird = new bird("haha",2,"黑色");
        cat cat = new cat("hehe","黑白",3);
        robot robot = new robot();
        test1(bird);
        test2(bird);
        test3(cat);
        test3(robot);
    }
}
